<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>DMS-文档管理系统</title>
<!-- botostrap -->
<link rel="stylesheet" type="text/css"
	th:href="@{/assets/components/bootstrap-3.3.7/css/bootstrap.min.css}" />
<!-- botostrap fileinput -->
<link rel="stylesheet" type="text/css"
	th:href="@{/assets/components/bootstrap-fileinput/css/fileinput.min.css}" />
<!-- JQUERY -->
<script type="text/javascript"
	th:src="@{/assets/js/jquery.min.js}"></script>
<!-- botostrap -->
<script type="text/javascript"
	th:src="@{/assets/components/bootstrap-3.3.7/js/bootstrap.min.js}"></script>
<!-- botostrap fileinput -->
<script type="text/javascript"
	th:src="@{/assets/components/bootstrap-fileinput/js/fileinput.min.js}"></script>
<script type="text/javascript"
	th:src="@{/assets/components/bootstrap-fileinput/js/locales/zh.js}"></script>
<script type="text/javascript"
	th:src="@{/assets/components/bootstrap-fileinput/themes/fa/theme.min.js}"></script>
</head>
<script th:inline="javascript" type="text/javascript">
$(function(){
	var uploadUrl=/*[[@{/upload}]]*/;
	$('#imageupload').fileinput({
		language:'zh'
	});
	$('#imageupload1').fileinput({
		  language: 'zh', //设置语言
          uploadUrl:uploadUrl, //上传的地址
          allowedFileExtensions: ['jpg', 'gif', 'png'],//接收的文件后缀
         //uploadExtraData:{"id": 1, "fileName":'123.mp3'},
          uploadAsync: true, //默认异步上传
          showUpload:true, //是否显示上传按钮
          showRemove :true, //显示移除按钮
          showPreview :true, //是否显示预览
          showCaption:false,//是否显示标题
          browseClass:"btn btn-primary", //按钮样式    
          dropZoneEnabled: false,//是否显示拖拽区域
         //minImageWidth: 50, //图片的最小宽度
         //minImageHeight: 50,//图片的最小高度
         //maxImageWidth: 1000,//图片的最大宽度
         //maxImageHeight: 1000,//图片的最大高度
          //maxFileSize:0,//单位为kb，如果为0表示不限制文件大小
         //minFileCount: 0,
          maxFileCount:10, //表示允许同时上传的最大文件个数
          enctype:'multipart/form-data',
          validateInitialCount:true,
          previewFileIcon: "<iclass='glyphicon glyphicon-king'></i>",
          msgFilesTooMany: "选择上传的文件数量({n}) 超过允许的最大数值{m}！",
	});
});
</script>
<body>
	<div class="container-fluid">
		<div class="row">
			<div class="col-md-12">
				<input id="imageupload" type="file" name="filesadas">
				<form>
					<fieldset class="" style="">
					  <div class="form-group">
					    <label for="exampleInputEmail1">Email address</label>
					    <input type="email" class="form-control" id="exampleInputEmail1" placeholder="Email">
					  </div>
					  <div class="form-group">
					    <label for="exampleInputPassword1">Password</label>
					    <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
					  </div>
					  <div class="form-group">
					    <label for="exampleInputFile">File input</label>
					    <input type="file" id="imageupload1" name="file">
					    <p class="help-block">Example block-level help text here.</p>
					  </div>
					  <div class="checkbox">
					    <label>
					      <input type="checkbox"> Check me out
					    </label>
					  </div>
					  <button type="submit" class="btn btn-default">Submit</button>
					</fieldset>
				</form>
			</div>
		</div>
	</div>
</body>
</html>